function normal(result:Object, data:Object):Object
{
	// Packages.log(this._name+".normal");
	// Packages.log("returnCode:"+result.returnCode);
	/*for (var a in result )
	{
		Packages.log(a+": "+result[a], "debug");
	}*/

	var container=Packages.system.mlf.GateKeeper.scanElement(data.name, data.container);
	var rstBody_x=container._width/2-150;
	var rstReturn_x=container._width/2-30;
	
	var cont:String;
	cont="<moonlight name='"+data.name+"' template='"+data.name+"-"+data.container+"' uri='"+data.uri+"'>"
			+"<portlet name='commonRemotingResult' drag='no' height='25'>";	
	cont+="<textfield name='resultBody' x='"+rstBody_x+"' y='30' html='true' selectable='no' width='300' height='20'>"+data.oper+"</textfield>";
	cont+="<textfield name='resultReturnLabel' x='"+rstReturn_x+"' y='50' html='true' selectable='no' width='80' height='20'>RemotingResultReturnLabel</textfield>";
	cont+="<hotspot name='resultReturnSpot' x='"+rstReturn_x+"' y='50' alpha='0' width='60' height='20' />";
	cont+="<textfield name='resultReturnPath' selectable='no' width='0' >"+data.returnPath+"</textfield>";
	cont+="<textfield name='containerName' selectable='no' width='0' >"+data.container+"</textfield>";
	cont+="<textfield name='returnCode' selectable='no' width='0' >"+result.returnCode+"</textfield>";
	if (result.errorMessage!=null)
	{
		cont+="<textfield name='errorMessage' selectable='no' width='0' >"+result.errorMessage+"</textfield>";
	}
	if (data.initCall!=null)
	{
		cont+="<textfield name='initCall' selectable='no' width='0' >"+data.initCall+"</textfield>";
	}
	if (result.returnObj!=null)
	{
		cont+="<textfield name='returnObj' selectable='no' width='0' >"+result.returnObj+"</textfield>";
	}
	cont+="<handler ins='"+data.name+"-commonRemotingResult' type='onMLInit' value='"+data.name+"' src='lib:notes.system.utils.ComponentsUtil.onCommonRemotingResultInit'/>";
	cont+="</portlet></moonlight>";

	var voData:Object=new Object();
	voData.type="Template";
	voData.content=cont;

	return voData;
}

function expand(result:Object, data:Object):Object
{
	return normal(result, data);
}